<?php
Plugin::setInfos(array(
    'id'          => 'jq_gallery_view',
    'title'       => 'Picasa/Flickr Album', 
    'description' => 'Pluck images from Picasa or Flickr', 
    'version'     => '1.0', 
	'require_frog_version' => '0.9.2'
));

function picasa_album($to,$albumName) {
	echo 	"<div id=\"".$albumName."Album\" class=\"album\">"
			#."<h3>".$albumName."</h3>"
			."<a href=\"".$to."\" class=\"jqAlbumParser wa:picasa\">".$albumName."</a>"
			."</div>";
	}
function js_album() {
	echo "<link rel=\"stylesheet\" href=\"".URL_PUBLIC."frog/plugins/jq_gallery_view/css/jqGalViewII.css\" type=\"text/css\" media=\"screen\" />";
	echo "<script type=\"text/javascript\" src=\"".URL_PUBLIC."frog/plugins/jq_gallery_view/js/jquery-1.2.6.pack.js\"></script>";
	echo "<script type=\"text/javascript\" src=\"".URL_PUBLIC."frog/plugins/jq_gallery_view/js/jqGalViewII.js\"></script>";
	echo "<script type=\"text/javascript\" src=\"".URL_PUBLIC."frog/plugins/jq_gallery_view/js/jqAlbumParser.js\"></script>";
	echo "
	<script type=\"text/javascript\">
		$(document).ready(function(){
			$(\".jqAlbumParser\").jqAlbumParser({
				pluginExec : function(){
					$(this).jqGalViewII();
				}
			}).trigger(\"click\");
		});	
	</script>";
}

?>